<?php
	
        #---------------------------------------------------------------
        #  Development source for MHTVS
        #  "The minimal headless TV server for mobile devices"
        #  Copyright (c) 2011, Doug Thompson, perladdict@gmail.com
        #  All rights reserved.
        #
        #  http://code.google.com/p/mhtvs/
        #
        #  View Demo here:
	#  http://www.youtube.com/watch?v=v4M2uVrMrGk
	#
        #  Redistribution and use in source and binary forms, with or
        #  without modification, are permitted provided that the following
        #  conditions are met:
        #
        #    * Redistributions of source code must retain the above
        #      copyright notice, this list of conditions and the
        #      following disclaimer.
        #    * Redistributions in binary form must reproduce the
        #      above copyright notice, this list of conditions and
        #      the following disclaimer in the documentation and/or
        #      other materials provided with the distribution.
        #    * Neither the name of the developer nor the names
        #      of its contributors may be used to endorse or promote
        #      products derived from this software without specific
        #      prior written permission.
        #
        #  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
        #  CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
        #  INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
        #  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
        #  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
        #  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
        #  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
        #  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
        #  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
        #  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
        #  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
        #  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
        #  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
        #  SUCH DAMAGE.
        #---------------------------------------------------------------


	# change this to your server ip address:
	$ip = "127.0.0.1";
        $port1 = "4556";
        $port2 = "8051";

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
        <title>MHTVS</title>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
        <style type="text/css">
        body {
                background: #000000;
        }
        .title { position: relative; 
                font-family: Verdana, Helvetica, sans-serif; 
                font-size: 24px; 
                color:#ffffff; 
                padding:4px 4px 4px 4px; 
                margin:4px; 
        }
        </style>
</head>
        <body>
                <div class="title">minimal headless tv server</div>
       			<!--flvplayer directory contents from this project: http://code.google.com/p/flv-flash-fullscreen-video-player/ this has to be added separately for this to function-->
                        <iframe name="tvscreen" class="tvscreen" src="http://<?php echo $ip ?>/flvplayer/player.html?skin=skin-play-fullscreen.swf&video=http://<?php echo $ip ?>:<?php echo $port1 ?>/stream.flv&preview=MHTVSsm.jpg&skincolor=0x141414&autoscale=true" frameborder="0" scrolling="no" height="280" width="320"></iframe>
                        <br>
                        <iframe name="tvscreen" class="tvscreen" src="http://<?php echo $ip ?>:<?php echo $port2 ?>/chanlist.php" frameborder="0" scrolling="no" height="280" width="320"></iframe>
                </div>
        </body>
</html>
